package com.ws.shop.service;

import java.util.List;
import java.util.Map;

import com.ws.shop.bean.Page;
import com.ws.shop.entity.Article;

public interface ArticleService {

	public Page findArticleListPage(long pageno,int pagesize, String title);

	public Article findArticleById(int id);

	public void saveOrUpdateArticle(Article article);

	public void deleteArticleById(int id);

	public void deleteArticleByIds(int[] ids);

	public List<Article> findArticlesByCategery();
	
	public List<Map<String,Object>> getArticle(int state ,int cid,int limit);
	
	public void getArticlesByCid(final Page page, final int cid,final int state);
	
	public List<Map<String,Object>> getArticlesByCondition(long id,int cid,int type);

	public Page findArticlesByCids(int pageno, int pagesize, int[] cids,
			String start, String end);

	/**
	 * 根据指定文章类型获取文章
	 * @param pageno
	 * @param pagesize
	 * @param cid
	 * @return
	 */
	public Page findArticleListPage(int pageno, int pagesize, int cid);
	
}
